package sy.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Objectmap entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "objectmap", catalog = "sy")
public class Objectmap implements java.io.Serializable {

	// Fields

	private String id;
	private String pageid;
	private String objname;
	private String objtype;
	private String xpath;
	private String searchtype;

	// Constructors

	/** default constructor */
	public Objectmap() {
	}

	/** minimal constructor */
	public Objectmap(String id, String pageid, String objname) {
		this.id = id;
		this.pageid = pageid;
		this.objname = objname;
	}

	/** full constructor */
	public Objectmap(String id, String pageid, String objname, String objtype,
			String xpath, String searchtype) {
		this.id = id;
		this.pageid = pageid;
		this.objname = objname;
		this.objtype = objtype;
		this.xpath = xpath;
		this.searchtype = searchtype;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "PAGEID", nullable = false, length = 36)
	public String getPageid() {
		return this.pageid;
	}

	public void setPageid(String pageid) {
		this.pageid = pageid;
	}

	@Column(name = "OBJNAME", nullable = false, length = 50)
	public String getObjname() {
		return this.objname;
	}

	public void setObjname(String objname) {
		this.objname = objname;
	}

	@Column(name = "OBJTYPE", length = 20)
	public String getObjtype() {
		return this.objtype;
	}

	public void setObjtype(String objtype) {
		this.objtype = objtype;
	}

	@Column(name = "XPATH", length = 200)
	public String getXpath() {
		return this.xpath;
	}

	public void setXpath(String xpath) {
		this.xpath = xpath;
	}

	@Column(name = "SEARCHTYPE", length = 20)
	public String getSearchtype() {
		return this.searchtype;
	}

	public void setSearchtype(String searchtype) {
		this.searchtype = searchtype;
	}

}